package net.wanho.service;

import net.wanho.dto.AddRoleDTO;
import net.wanho.dto.RoleAuthDTO;
import net.wanho.dto.RoleDTO;
import net.wanho.po.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.po.UserInfo;
import net.wanho.vo.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

/**
* @author Administrator
* @description 针对表【role(角色表)】的数据库操作Service
* @createDate 2025-04-28 11:41:58
*/
public interface RoleService extends IService<Role> {

    List<Role> selectByUserId(Integer id);

    PageInfo<Role> rolePageList(Integer pageNum, Integer pageSize, RoleDTO roleDTO);

    void addRole(AddRoleDTO addRoleDTO);

    void updateState(Role role);

    Role selectById(Integer id);

    void modifyById(Role role);

    void updateRoleAuth(RoleAuthDTO roleAuthDTO);



    //List<Role> getAllRoles();
}
